<?php

;//require_once 'Base/FileRow.php';

/**
 * Generated Model class.
 */
class FileRow extends Base_FileRow
{
	/**
	 * Return url for image.
	 * 
	 * @return string
	 */
	public function getUrl()
	{
		$uri = $this->getHash() . '.' . $this->getExt();
		
		$config = Config::getInstance()->file_transfer->depository;
		$host = ($config->host) ? $config->host : $_SERVER['HTTP_HOST'];
		$path = rtrim($config->prefixPath, '/');
		$url = 'http://' . $host . $path . '/' . $uri;
		
		return $url;
	}
}

